package com.alfred.springboot.handlerinterceptor.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: alfred
 * @date: 2021/7/19
 * @description: 测试接口
 */
@RestController
public class TestController {

    @PostMapping("/listen")
    public String listen(@RequestBody String userName){
        return "user "+userName+" listening";
    }

}
